{extend name='index/base' /}

{block name='main'}
<body>
<header class="navbar-wrapper">
    <div class="navbar navbar-fixed-top">
        <div class="container-fluid cl"> <a class="logo navbar-logo f-l mr-10 hidden-xs" href="">总后台</a> <a class="logo navbar-logo-m f-l mr-10 visible-xs" href="">H-ui</a>
            <span class="logo navbar-slogan f-l mr-10 hidden-xs">v2.0</span>
            <a aria-hidden="false" class="nav-toggle Hui-iconfont visible-xs" href="javascript:;">&#xe667;</a>
            <nav class="nav navbar-nav">
                <ul class="cl">
                    <!--<li class="dropDown dropDown_hover"><a href="javascript:;" class="dropDown_A"><i class="Hui-iconfont">&#xe600;</i> 新增 <i class="Hui-iconfont">&#xe6d5;</i></a>-->
                        <!--<ul class="dropDown-menu menu radius box-shadow">-->
                            <!--<li><a href="javascript:;" onclick="article_add('添加资讯','article-add.html')"><i class="Hui-iconfont">&#xe616;</i> 资讯</a></li>-->
                            <!--<li><a href="javascript:;" onclick="picture_add('添加资讯','picture-add.html')"><i class="Hui-iconfont">&#xe613;</i> 图片</a></li>-->
                            <!--<li><a href="javascript:;" onclick="product_add('添加资讯','product-add.html')"><i class="Hui-iconfont">&#xe620;</i> 产品</a></li>-->
                            <!--<li><a href="javascript:;" onclick="member_add('添加用户','member-add.html','','510')"><i class="Hui-iconfont">&#xe60d;</i> 用户</a></li>-->
                        <!--</ul>-->
                    <!--</li>-->
                    <li class="navbar-levelone current"><a href="javascript:;">平台</a></li>
                    <!--<li class="navbar-levelone"><a href="javascript:;">商城</a></li>-->
                    <!--<li class="navbar-levelone"><a href="javascript:;">财务</a></li>-->
                    <!--<li class="navbar-levelone"><a href="javascript:;">手机</a></li>-->
                    </li>
                </ul>
            </nav>
            <nav id="Hui-userbar" class="nav navbar-nav navbar-userbar hidden-xs">
                <ul class="cl">
                    <li>{:session('admin.name')}</li>
                    <li class="dropDown dropDown_hover">
                        <a href="#" class="dropDown_A">{:session('admin.username')}<i class="Hui-iconfont">&#xe6d5;</i></a>
                        <ul class="dropDown-menu menu radius box-shadow">
                            <!--<li><a href="javascript:;" onClick="myselfinfo()">个人信息</a></li>-->
                            <!--<li><a href="{:url('admin/System/editpwd')}">修改密码</a></li>-->
                            <li><a href="javascript:;" onclick="updatepwd()">修改密码</a></li>
                            <li><a href="{:url('admin/Login/exitlogin')}">退出</a></li>
                        </ul>
                    </li>
                    <!--<li id="Hui-msg"> <a href="#" title="消息"><span class="badge badge-danger">1</span><i class="Hui-iconfont" style="font-size:18px">&#xe68a;</i></a> </li>-->
                    <li id="Hui-skin" class="dropDown right dropDown_hover"> <a href="javascript:;" class="dropDown_A" title="换肤"><i class="Hui-iconfont" style="font-size:18px">&#xe62a;</i></a>
                        <ul class="dropDown-menu menu radius box-shadow">
                            <li><a href="javascript:;" data-val="default" title="默认（黑色）">默认（黑色）</a></li>
                            <li><a href="javascript:;" data-val="blue" title="蓝色">蓝色</a></li>
                            <li><a href="javascript:;" data-val="green" title="绿色">绿色</a></li>
                            <li><a href="javascript:;" data-val="red" title="红色">红色</a></li>
                            <li><a href="javascript:;" data-val="yellow" title="黄色">黄色</a></li>
                            <li><a href="javascript:;" data-val="orange" title="橙色">橙色</a></li>
                        </ul>
                    </li>
                </ul>
            </nav>
        </div>
    </div>
</header>
<aside class="Hui-aside">
    <div class="menu_dropdown bk_2">
        <dl id="menu-home">
            <li><a data-href="welcome.html" data-title="首页" href="javascript:;"><i class="Hui-iconfont">&#xe625;</i> 首页</a></li>
        </dl>
        <dl id="menu-member">
            <dt><i class="Hui-iconfont">&#xe6b4;</i> 会员管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
            <dd>
                <ul>
                    <!--/admin/vip/index.html-->
                    <!---->
                    <!--vip/index-->

                    <!--"index/welcome"-->
                    <!--"index/index"-->
                    <!--"vip/index"-->
                    <li><a class="myurl" data-href="{:url('admin/Vip/index')}"  data-title="企业会员" href="javascript:;">企业会员</a></li>
                    <li><a class="myurl" data-href="{:url('admin/Agents/index')}"  data-title="代理商列表" href="javascript:;">代理商列表</a></li>
                    <li><a class="myurl" data-href="{:url('admin/User/index')}" data-title="客户列表" href="javascript:;">客户列表</a></li>
                    <li>----------------------</li>
                    <li><a class="myurl" data-href="{:url('admin/User/rename')}" id="dsm" data-title="待实名认证" href="javascript:;">待实名认证</a></li>
                    <li><a class="myurl" data-href="{:url('admin/User/openlist')}" data-title="待开户列表" href="javascript:;">待开户列表</a></li>
                    <li><a class="myurl" data-href="{:url('admin/User/reloglist')}" data-title="实名日志" href="javascript:;">实名日志</a></li>
                    <li><a class="myurl" data-href="{:url('admin/User/cplist')}" data-title="操盘记录" href="javascript:;">操盘记录</a></li>
                </ul>
            </dd>
        </dl>

        <dl id="menu-withdraw">
            <dt><i class="Hui-iconfont">&#xe6ca;</i> 提现管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
            <dd>
                <ul>
                    <li><a class="myurl" data-href="{:url('admin/Putforward/examine')}" data-title="待审核" href="javascript:void(0)">待审核</a></li>
                    <li><a class="myurl" data-href="{:url('admin/Putforward/payment')}" data-title="待付款" href="javascript:void(0)">待付款</a></li>
                    <li><a class="myurl" data-href="{:url('admin/Putforward/successpay')}" data-title="已付款" href="javascript:void(0)">已付款</a></li>
                    <li><a class="myurl" data-href="{:url('admin/Putforward/errorpay')}" data-title="未通过" href="javascript:void(0)">未通过</a></li>
                </ul>
            </dd>
        </dl>

        <dl id="menu-recharge">
            <dt><i class="Hui-iconfont">&#xe735;</i> 充值管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
            <dd>
                <ul>
                    <li><a class="myurl" data-href="{:url('admin/Goldentry/examine')}" data-title="待审核线下充值" href="javascript:void(0)">待审核线下充值</a></li>
                    <li><a class="myurl" data-href="{:url('admin/Goldentry/czsuccess')}" data-title="已完成线下充值" href="javascript:void(0)">已完成线下充值</a></li>
                    <li><a class="myurl" data-href="{:url('admin/Goldentry/czerror')}" data-title="未通过线下充值" href="javascript:void(0)">未通过线下充值</a></li>
                    <li>----------------------</li>
                    <li><a class="myurl" data-href="{:url('admin/Goldentry/xianshanglog')}" data-title="线上充值日志" href="javascript:void(0)">线上充值日志</a></li>
                    <li><a class="myurl" data-href="{:url('admin/Goldentry/are')}" data-title="人工充值" href="javascript:void(0)">人工充值</a></li>
                    <li><a class="myurl" data-href="{:url('admin/Goldentry/koukuang')}" data-title="人工扣款" href="javascript:void(0)">人工扣款</a></li>
                    <li><a class="myurl" data-href="{:url('admin/Goldentry/shoufu')}" data-title="易收付小B" href="javascript:void(0)">易收付小B</a></li>
                </ul>
            </dd>
        </dl>
        <dl id="menu-log">
            <dt><i class="Hui-iconfont">&#xe687;</i> 交易记录<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
            <dd>
                <ul>
                    <li><a class="myurl" data-href="{:url('admin/Transaction/showlist')}" data-title="查看交易记录" href="javascript:void(0)">查看交易记录</a></li>
                    <li><a class="myurl" data-href="{:url('admin/Transaction/showimport')}" data-title="导入交易记录" href="javascript:void(0)">导入交易记录</a></li>
                    <li><a class="myurl" data-href="{:url('admin/Transaction/jitouexport')}" data-title="吉投记录导出" href="javascript:void(0)">吉投记录导出</a></li>
                </ul>
            </dd>
        </dl>

        <dl id="menu-count">
            <dt><i class="Hui-iconfont">&#xe687;</i> 统计汇总<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
            <dd>
                <ul>
                    <li><a class="myurl" data-href="{:url('admin/Transaction/showlog')}" data-title="查看资金日志" href="javascript:void(0)">查看资金日志</a></li>
                    <li><a class="myurl" data-href="{:url('admin/Transaction/ylsum')}" data-title="盈利总额汇总" href="javascript:void(0)">盈利总额汇总</a></li>
                    <li><a class="myurl" data-href="{:url('admin/Transaction/ylcssum')}" data-title="盈利次数汇总" href="javascript:void(0)">盈利次数汇总</a></li>
                    <li><a class="myurl" data-href="{:url('admin/Transaction/countsum')}" data-title="交易量汇总" href="javascript:void(0)">交易量汇总</a></li>
                    <li><a class="myurl" data-href="{:url('admin/Transaction/timesum')}" data-title="生存周期汇总" href="javascript:void(0)">生存周期汇总</a></li>
                    <li>----------------------</li>
                    <li><a class="myurl" data-href="{:url('admin/Transaction/showsum')}" data-title="返佣汇总" href="javascript:void(0)">返佣汇总</a></li>
                    <li><a class="myurl" data-href="{:url('admin/Transaction/czsum')}" data-title="充值提现统计" href="javascript:void(0)">充值提现统计</a></li>
                    <li><a class="myurl" data-href="{:url('admin/Transaction/rjsum')}" data-title="出入金统计" href="javascript:void(0)">出入金统计</a></li>
                </ul>
            </dd>
        </dl>

        <dl id="menu-admin">
            <dt><i class="Hui-iconfont">&#xe62d;</i> 权限管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
            <dd>
                <ul>
                    <li><a class="myurl" data-href="{:url('admin/Jurisdiction/admin_user_list')}" data-title="管理员列表" href="javascript:void(0)">管理员列表</a></li>
                    <li><a class="myurl" data-href="{:url('admin/Jurisdiction/admin_role_list')}" data-title="角色列表" href="javascript:void(0)">角色列表</a></li>
                    <li><a class="myurl" data-href="{:url('admin/Jurisdiction/admin_node_list')}" data-title="节点列表" href="javascript:void(0)">节点列表</a></li>
                </ul>
            </dd>
        </dl>
        <dl id="menu-system">
            <dt><i class="Hui-iconfont">&#xe62e;</i> 系统管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
            <dd>
                <ul>
                    <li><a class="myurl" data-href="{:url('admin/System/system')}" data-title="系统设置" href="javascript:void(0)">系统设置</a></li>
                    <li><a class="myurl" data-href="{:url('admin/System/qjapilist')}" data-title="开户主账号配置" href="javascript:void(0)">开户主账号配置</a></li>
                    <li><a class="myurl" data-href="{:url('admin/System/banklist')}" data-title="银行列表" href="javascript:void(0)">银行列表</a></li>
                    <li><a class="myurl" data-href="{:url('admin/System/paylist')}" data-title="支付接口管理" href="javascript:void(0)">支付接口管理</a></li>
                    <!--<li><a data-href="{:url('admin/System/editpwd')}" data-title="修改登录密码" href="javascript:void(0)">修改登录密码</a></li>-->
                    <li><a class="myurl" data-href="{:url('admin/System/systemlog')}" data-title="系统日志" href="javascript:void(0)">系统日志</a></li>
                </ul>
            </dd>
        </dl>
        <dl id="menu-article">
            <dt><i class="Hui-iconfont">&#xe62e;</i>CMS管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
            <dd>
                <ul>
                    <li><a class="myurl" data-href="{:url('admin/Sowingmap/index')}" data-title="轮播图" href="javascript:void(0)">首页图片</a></li>
                    <li><a class="myurl" data-href="{:url('admin/Cooperation/index')}" data-title="友情链接" href="javascript:void(0)">友情链接</a></li>
                    <li><a class="myurl" data-href="{:url('admin/Cooperation/indexs')}" data-title="合作伙伴" href="javascript:void(0)">合作伙伴</a></li>
                    <li><a class="myurl" data-href="{:url('admin/Article/index')}" data-title="文章列表" href="javascript:void(0)">文章列表</a></li>
                    <li><a class="myurl" data-href="{:url('admin/Articletype/index')}" data-title="文章分类" href="javascript:void(0)">文章分类</a></li>
                </ul>
            </dd>
        </dl>
    </div>

    <div class="menu_dropdown bk_2" style="display:none">
        <dl id="menu-aaaaa">
            <dt><i class="Hui-iconfont">&#xe616;</i> 二级导航1<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
            <dd>
                <ul>
                    <li><a data-href="article-list.html" data-title="资讯管理" href="javascript:void(0)">三级导航</a></li>
                </ul>
            </dd>
        </dl>
    </div>

    <div class="menu_dropdown bk_2" style="display:none">
        <dl id="menu-bbbbb">
            <dt><i class="Hui-iconfont">&#xe616;</i> 二级导航2<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
            <dd>
                <ul>
                    <li><a data-href="article-list.html" data-title="资讯管理" href="javascript:void(0)">三级导航</a></li>
                </ul>
            </dd>
        </dl>
    </div>

    <div class="menu_dropdown bk_2" style="display:none">
        <dl id="menu-ccccc">
            <dt><i class="Hui-iconfont">&#xe616;</i> 二级导航3<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
            <dd>
                <ul>
                    <li><a data-href="article-list.html" data-title="资讯管理" href="javascript:void(0)">三级导航</a></li>
                </ul>
            </dd>
        </dl>
    </div>

</aside>
<div class="dislpayArrow hidden-xs"><a class="pngfix" href="javascript:void(0);" onClick="displaynavbar(this)"></a></div>
<section class="Hui-article-box">
    <div id="Hui-tabNav" class="Hui-tabNav hidden-xs">
        <div class="Hui-tabNav-wp">
            <ul id="min_title_list" class="acrossTab cl">
                <li class="active">
                    <span title="我的桌面" data-href="welcome.html">我的桌面</span>
                    <em></em></li>
            </ul>
        </div>
        <div class="Hui-tabNav-more btn-group"><a id="js-tabNav-prev" class="btn radius btn-default size-S" href="javascript:;"><i class="Hui-iconfont">&#xe6d4;</i></a><a id="js-tabNav-next" class="btn radius btn-default size-S" href="javascript:;"><i class="Hui-iconfont">&#xe6d7;</i></a></div>
    </div>
    <div id="iframe_box" class="Hui-article">
        <div class="show_iframe">
            <div style="display:none" class="loading"></div>
            <iframe scrolling="yes" frameborder="0" src="{:url('admin/Index/welcome')}"></iframe>
        </div>
    </div>
</section>

<div class="contextMenu" id="Huiadminmenu">
    <ul>
        <li id="closethis">关闭当前 </li>
        <li id="closeall">关闭全部 </li>
    </ul>
</div>

</body>
{/block}


{block name='my'}
<script type="text/javascript" src="/static/admin/lib/jquery.contextmenu/jquery.contextmenu.r2.js"></script>
<script type="text/javascript">

    // 隐藏 没有权限的链接
    var  node= '{:json_encode(session('admin_node'))}' ;
    var  user='{:session('admin.username')}';
    node=JSON.parse(node);
    if(user!='admin'){
        $('.myurl').each(function () {
            var url=$(this).attr('data-href');
            var arr=url.split("/");
            url=arr[2]+'/'+arr[3];
            arr=url.split('.');
            url=arr[0];
            if($.inArray(url,node)!=-1){

            }else {
                $(this).hide();
            }
        })
    }







    $(function(){
        /*$("#min_title_list li").contextMenu('Huiadminmenu', {
         bindings: {
         'closethis': function(t) {
         console.log(t);
         if(t.find("i")){
         t.find("i").trigger("click");
         }
         },
         'closeall': function(t) {
         alert('Trigger was '+t.id+'\nAction was Email');
         },
         }
         });*/


        $("body").Huitab({
            tabBar:".navbar-wrapper .navbar-levelone",
            tabCon:".Hui-aside .menu_dropdown",
            className:"current",
            index:0,
        });
    });
    /*个人信息*/
    function myselfinfo(){
        layer.open({
            type: 1,
            area: ['300px','200px'],
            fix: false, //不固定
            maxmin: true,
            shade:0.4,
            title: '查看信息',
            content: '<div>管理员信息</div>'
        });
    }
    /*修改密码*/
    function updatepwd(){
        layer.open({
            type: 1,
            area: ['600px','300px'],
            fix: false, //不固定
            maxmin: true,
            shade:0.4,
            title: '修改密码',
            content: '<form action="{:url('admin/System/doeditpwd')}" method="post" class="form form-horizontal" id="form-member-add" enctype="multipart/form-data"> <div class="row cl" style="margin-left:0; margin-right:0;"> <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>请输入原密码：</label> <div class="formControls col-xs-8 col-sm-9"> <input type="password" class="input-text" value="" placeholder="" name="oldpwd"> </div> </div> <div class="row cl" style="margin-left:0; margin-right:0;"> <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>请输入新密码：</label> <div class="formControls col-xs-8 col-sm-9"> <input type="password" class="input-text" value="" placeholder="" name="pwd"> </div> </div> <div class="row cl" style="margin-left:0; margin-right:0;"> <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>请确认新密码：</label> <div class="formControls col-xs-8 col-sm-9"> <input type="password" class="input-text" value="" placeholder="" name="repwd"> </div> </div> <div class="row cl" style="margin-left:0; margin-right:0;"> <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3"> <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;"> </div> </div> </form>'




        });
    }

    /*资讯-添加*/
    function article_add(title,url){
        var index = layer.open({
            type: 2,
            title: title,
            content: url
        });
        layer.full(index);
    }
    /*图片-添加*/
    function picture_add(title,url){
        var index = layer.open({
            type: 2,
            title: title,
            content: url
        });
        layer.full(index);
    }
    /*产品-添加*/
    function product_add(title,url){
        var index = layer.open({
            type: 2,
            title: title,
            content: url
        });
        layer.full(index);
    }
    /*用户-添加*/
    function member_add(title,url,w,h){
        layer_show(title,url,w,h);
    }


</script>
{/block}

